package io.terminus.spzx.model.entity.user;

import io.swagger.v3.oas.annotations.media.Schema;
import io.terminus.spzx.model.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 用户地址Entity实体类
 * @Date 2024-03-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户地址实体类")
public class UserAddress extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "name")
    private String name;

    @Schema(description = "电话")
    private String phone;

    @Schema(description = "标签名称")
    private String tagName;

    @Schema(description = "省Code")
    private String provinceCode;

    @Schema(description = "城市Code")
    private String cityCode;

    @Schema(description = "区Code")
    private String districtCode;

    @Schema(description = "详细地址")
    private String address;

    @Schema(description = "完整地址")
    private String fullAddress;

    @Schema(description = "是否默认地址（0：否 1：是）")
    private Integer isDefault;

}